(function(){"use strict";BX.namespace("BX.Landing.UI.Button");BX.Landing.UI.Button.AlignTable=function(t,i){BX.Landing.UI.Button.EditorAction.apply(this,arguments);this.editPanel=null;this.options=i;this.id=t};BX.Landing.UI.Button.AlignTable.prototype={constructor:BX.Landing.UI.Button.AlignTable,__proto__:BX.Landing.UI.Button.EditorAction.prototype,onClick:function(t){t.preventDefault();t.stopPropagation();var i=this.id;var n="landing-ui-active";this.options.alignButtons.forEach(function(t){if(t.id===i){t.layout.classList.add(n)}else{t.layout.classList.remove(n)}});if(this.options.table){var e=null;var a=["text-left","text-center","text-right","text-justify"];switch(this.id){case"alignLeft":e="text-left";break;case"alignCenter":e="text-center";break;case"alignRight":e="text-right";break;case"alignJustify":e="text-justify";break}this.options.setTd.forEach(function(t){if(t.nodeType===1){a.forEach(function(i){if(i===e){t.classList.add(i)}else{t.classList.remove(i)}})}})}BX.Landing.Block.Node.Text.currentNode.onChange(true)}}})();
//# sourceMappingURL=align_table.map.js